BWM: A Concrete Machine for Graph Reduction
نویسنده
چکیده
/* Pointer or */ int data:30; /* data */ } uword; } word; /* Word in the heap */ typedef struct { word ptrss4]; /* Four pointers (or whatever) */ } node; 11 Appendix A Instruction encoding The description is given in pseudo-C, where we assume that bit elds are packed in a suitable way. All addresses are assumed to be big word aligned thus having four lsb zeroes that need not be stored. typedef struct { bool shared:1; /* set shared bit */ argtype type:2; /* argument type */ union { unsigned int stackoffs:5; /* unsigned offset for stack */ signed int heapoffs:5; /* signed offset for heap */ specsource special:5; /* special source */ } uarg; } argspec; typedef struct { argspec args:884]; /* argument specifiers */ bool shortinstr:1; /* true if this a short instruction */ bool write:1; /* write build register to memory */ bool push:1; /* push build register to stack/pc */ bool startalu:1; /* latch alu operands */ int stackadj:4; /* amount to pop from stack */ } shortinstr; typedef struct { shortinstr instr; /* instruction */ union { word litss2]; /* literals */ shortinstr instr2; /* or second instruction */ } u; } instr; B Node layout /* Address encodings */ typedef int memaddr; /* Generic address */ typedef struct { int arity:5; /* arity of function */ bool constr:1; /* constr/addr flag */ union { memaddr address:23; /* address of function */ int constrno:23; /* constructor function number */ } ucode; } codepointer; /* pointer to code */ typedef struct { bool share:1; /* is node possibly shared? */ memaddr address:28; /* address of node */ } nodepointer; /* pointer to node */ typedef struct { bool code:1; /* code/node flag */ union { codepointer cptr:29; /* code or */ nodepointer nptr:29; /* node pointer */ } uptr; } pointer; /* pointer in heap and stack */ /* Node layout */ typedef struct { bool used:1; /* Word used/unused flag */ bool ptr:1; /* Pointer/data flag */ union {
منابع مشابه
Efficient Heap Management in the Concrete Abc Machine
This paper gives a description of the heap management system used in the implementation of Concurrent Clean. The compilation of Concurrent Clean to concrete target machine code is done with the aid of the abstract ABC machine. The ABC machine is a stack based graph reduction machine. The way graphs can be represented and manipulated on a real machine efficiently will be discussed. An important ...
متن کاملBWM*: A Novel, Provable, Ensemble-Based Dynamic Programming Algorithm for Sparse Approximations of Computational Protein Design
Sparse energy functions that ignore long range interactions between residue pairs are frequently used by protein design algorithms to reduce computational cost. Current dynamic programming algorithms that fully exploit the optimal substructure produced by these energy functions only compute the GMEC. This disproportionately favors the sequence of a single, static conformation and overlooks bett...
متن کاملRisk Assessment as a Decision Supporting Tool in Ballast Water Management
After almost two decades of intensified research, regulatory and political activities focussed on the prevention of harmful organisms and pathogen transfers around the world, in 2004 the International Convention on the Management of Ships’ Ballast Water and Sediments (BWM Convention) was adopted to provide for a common and globally uniform ballast water management (BWM) approach. Recognising th...
متن کاملComparative Analysis of Machine Learning Algorithms with Optimization Purposes
The field of optimization and machine learning are increasingly interplayed and optimization in different problems leads to the use of machine learning approaches. Machine learning algorithms work in reasonable computational time for specific classes of problems and have important role in extracting knowledge from large amount of data. In this paper, a methodology has been employed to opt...
متن کاملObserving gravitational wave bursts in pulsar timing measurements
We propose a novel method for observing the gravitational wave signature of super-massive black hole (SMBH) mergers. This method is based on detection of a specific type of gravitational waves, namely gravitational wave burst with memory (BWM), using pulsar timing. We study the unique signature produced by BWM in anomalous pulsar timing residuals. We show that the present day pulsar timing prec...
متن کامل